import Vue from 'vue'
import VueRouter from 'vue-router'
import Menu from "@/views/Menu";
import Login from "@/views/Login";
import Index from "@/views/system/user/Index";
import Community from "@/views/property/community/index"
import Repair from "@/views/property/repair/Index"
import Visitor from "@/views/property/visitor/Index"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/menu',
    name: 'Menu',
    component: Menu,
    children:[
      {
        path: '/user',  /*路径  开始页面*/
        name: 'Index', /*名字*/
        component: Index /*组件*/
      },
      {
        path: '/Repair',  /*路径  开始页面*/
        name: 'Repair', /*名字*/
        component: Repair /*组件*/
      },
      {
        path: '/visitor',  /*路径  开始页面*/
        name: 'Visitor', /*名字*/
        component: Visitor /*组件*/
      },{
            path: '/community',  /*路径  开始页面*/
            name: 'Community', /*名字*/
            component: Community /*组件*/
        }


    ]
  }
];




const router = new VueRouter({
    routes
});

export default router
